/* 以my-animation-开头的class */
[class*='my-animation-'] {
  animation-duration: 1s;
  animation-timing-function: ease-out;
  animation-fill-mode: both;
}

.my-animation-slide-top {
  animation-name: slide-top;
}

.my-animation-slide-bottom {
  animation-name: slide-bottom;
}

.my-animation-hideToShow {
  animation-name: hideToShow;
}

/* 上移 */
@keyframes slide-top {
  0% {
    opacity: 0;
    transform: translateY(-20%);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 下移 */
@keyframes slide-bottom {
  0% {
    opacity: 0;
    transform: translateY(20%);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 首图动画：下移 */
@keyframes header-effect {
  0% {
    opacity: 0;
    transform: translateY(-50px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 旋转 */
@keyframes rotate {
  0% {
    opacity: 1;
    transform: rotate(0deg);
  }

  100% {
    opacity: 1;
    transform: rotate(360deg);
  }
}

/* 显示 */
@keyframes hideToShow {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* 下移 */
@keyframes my-shake {
  0% {
    opacity: 1;
    transform: translateY(0px);
  }

  30% {
    opacity: 0.5;
    transform: translateY(25px);
  }

  100% {
    opacity: 1;
    transform: translateY(0px);
  }
}

/* 上移 */
@keyframes scatter {
  0% {
    top: 0;
  }

  50% {
    top: -15px;
  }

  100% {
    top: 0;
  }
}

/* 放大 */
@keyframes scale {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.2);
  }

  100% {
    transform: scale(1);
  }
}

/* 放大 */
@keyframes imgScale {
  0% {
    transform: scale(0.8, 0.8);
  }

  70% {
    transform: scale(1.3, 1.3);
  }

  100% {
    transform: scale(0.8, 0.8);
  }
}

/* 渐变 */
@keyframes jianBian {
  to {
    background-position: -2000rem;
  }
}

/* 背景位置移动 */
@keyframes gradientBG {
  0% {
    background-position: 0 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0 50%;
  }
}

/* 阴影变化 */
@keyframes weiYanShadowFlashing {
  0% {
    box-shadow: none;
  }

  50% {
    box-shadow: 0 0 15px red;
  }

  100% {
    box-shadow: none;
  }
}

/* 有小变大 */
@keyframes zoomIn {
  0% {
    opacity: 0;
    transform: scale3d(0.3, 0.3, 0.3);
  }

  50% {
    opacity: 1;
  }
}

/* 由左开向右 */
@keyframes passing {
  0% {
    transform: translateX(-150%);
    opacity: 0;
  }

  50% {
    transform: translateX(0);
    opacity: 1;
  }

  100% {
    transform: translateX(150%);
    opacity: 0;
  }
}
// 文字波纹

@keyframes animate {
  0%,
  100% {
    clip-path: polygon(
      0 39%,
      18% 51%,
      34% 55%,
      50% 48%,
      61% 34%,
      80% 31%,
      99% 44%,
      100% 99%,
      1% 99%
    );
  }
  50% {
    clip-path: polygon(
      0 51%,
      24% 72%,
      53% 76%,
      70% 70%,
      83% 56%,
      88% 46%,
      100% 24%,
      100% 99%,
      1% 99%
    );
  }
  80% {
    clip-path: polygon(
      0 52%,
      22% 36%,
      39% 36%,
      50% 47%,
      62% 57%,
      81% 56%,
      98% 45%,
      100% 99%,
      1% 99%
    );
  }
}

@keyframes hueRotate {
  100% {
    filter: hue-rotate(360deg);
  }
}

@keyframes wave_move-forever {
  0% {
    transform: translate3d(-90px, 0, 0);
  }
  100% {
    transform: translate3d(85px, 0, 0);
  }
}
@keyframes fade-in {
  0% {
    transform: scale3d(0.3, 0.3, 0.3);
  }
  100% {
    transform: scaleX(1);
  }
}
@keyframes slide-from-right {
  0% {
    transform: translateX(20%);
  }
  100% {
    transform: translateX(0);
  }
}

@keyframes my-avatar-animate {
  0% {
    transform: rotate(0);
  }
  100% {
    transform: rotate(1turn);
  }
}
@keyframes tag-floating--g {
  0% {
    transform: translateY(-4px);
  }
  50% {
    transform: translateY(4px);
  }
  100% {
    transform: translateY(-4px);
  }
}
@keyframes swing{
  0%{
    transform: rotate(-10deg);
  }
  50%{
    transform: rotate(10deg);
  }
  100%{
    transform: rotate(-10deg);
  }
}